package com.wxzz.elearing.comment.service;

import com.wxzz.elearing.comment.dto.AnswersDescDto;
import com.wxzz.elearing.comment.dto.AnswersDto;
import com.wxzz.elearing.comment.dto.OrderIdDto;
import com.wxzz.elearing.comment.dto.QuestionsAnswersDto;
import com.wxzz.elearing.comment.entity.Comment;
import com.wxzz.elearing.comment.entity.QuestionsAnswersList;
import com.wxzz.elearing.comment.vo.AnswersVo;
import com.wxzz.elearing.comment.vo.QuestionsContentDescVo;
import com.wxzz.elearning.common.vo.JgPageVo;
import com.wxzz.elearning.common.vo.ReturnVO;

import java.util.List;

public interface ICommentService {

    /**
     * 评论
     * @param comment
     * @return
     */
    ReturnVO saveComment(Comment comment);

    /**
     * 根据文章id列出所有评论
     * @return
     */
    ReturnVO<QuestionsContentDescVo> listAllComment(Long articleId);

    /**
     * 采纳评论
     * @return
     */
    ReturnVO setAccept(QuestionsAnswersDto questionsAnswersDto);

    ReturnVO<JgPageVo<List<Comment>>> answersDescList(AnswersDescDto answersDescDto);

    ReturnVO<JgPageVo<List<AnswersVo>>> getAnswersList(AnswersDto answersDto);


    /**
     * 根据订单id获取用户id
     * @return
     */
    ReturnVO getUserIdByOrderId(Long orderId);

    ReturnVO deleteComment(Comment comment);

    ReturnVO deleteQueAns(QuestionsAnswersList questionsAnswersList);

}
